package com.github.yealove.configgen.exception;

import lombok.Data;

@Data
public class ConfigGenException extends RuntimeException {

    private int code;

    private String message;

    public ConfigGenException(int code, String message) {
        super(message);

        this.code = code;
        this.message = message;
    }

    public ConfigGenException(int code, String message, Throwable cause) {
        super(message, cause);

        this.code = code;
        this.message = message;
    }
}
